<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="en">

<head>
<title>重置密码</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" href="static/login/bootstrap.min.css" />
<link rel="stylesheet" href="static/login/css/camera.css" />
<link rel="stylesheet" href="static/login/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="static/login/matrix-login.css" />
<link href="static/login/font-awesome.css" rel="stylesheet" />
<script type="text/javascript" src="static/js/jquery-1.5.1.min.js"></script>

</head>
<script type="text/javascript">
       //确认重置密码
       function sureReset(){
       
           var password1=$("#password1").val();
           var password2=$("#password2").val();
           if(typeof(password1)=='undefined'||null==password1){
                $("#password1").tips({
					side : 2,
					msg : '密码不得为空',
					bg : '#AE81FF',
					time : 3
				});
				$("#password1").focus();
				return false;
           }else if(typeof(password2)=='undefined'||null==password2){
                $("#password2").tips({
					side : 2,
					msg : '确认密码不得为空',
					bg : '#AE81FF',
					time : 3
				});
				$("#password2").focus();
				return false;
           }
           if(password1!=password2){//两次密码输入的不一致
                $("#password1").tips({
					side : 2,
					msg : '两次输入的密码不一致',
					bg : '#AE81FF',
					time : 3
				});
				return false;
           }
            //验证通过提交表单
            $("#password").val(password1);
			$("#loginForm").submit();
           
       }
</script>
<body>
	<div
		style="width:100%;text-align: center;margin: 0 auto;position: absolute;">
		<div id="loginbox">
			<form action="" method="post" name="loginForm" id="loginForm">
			    <input id="email" type="hidden" name="email" value="${email}"/>
       		    <input type="hidden" id="password" name="password" value=""/>
				
				<div class="control-group normal_text">
					<h3>
						<img src="static/login/logo.png" alt="Logo" />
					</h3>
				</div>
				<div class="control-group">
					<div class="controls">
						<div class="main_input_box">
							<span class="add-on bg_lg">
							<i><img height="37" src="static/login/user.png" /></i>
							</span><input type="text" name="" id="password1" placeholder="请输入密码" />
						</div>
					</div>
				</div>
				<div class="control-group">
					<div class="controls">
						<div class="main_input_box">
							<span class="add-on bg_ly">
							<i><img height="37" src="static/login/suo.png" /></i>
							</span><input width="30%" type="password" name="" id="password2" placeholder="请输入确认密码" value="" />
						    
						</div>
						
					</div>
				</div>
				<div class="form-actions">
					<div style="width:50%;padding-left:8%;width: 50%">
						
						 <span class="pull-right"><a onclick="sureReset(this);" class="flip-link btn btn-info" id="next_step">下一步</a></span>
					</div>
				</div>

			</form>

			<div class="controls">
				<div class="main_input_box">
					<font color="white"><span id="nameerr">Copyright © FH
							2100</span></font>
				</div>
			</div>
		</div>
	</div>
	<div id="templatemo_banner_slide" class="container_wapper">
		<div class="camera_wrap camera_emboss" id="camera_slide">
			<div data-src="static/login/images/banner_slide_01.jpg"></div>
			<div data-src="static/login/images/banner_slide_02.jpg"></div>
			<div data-src="static/login/images/banner_slide_03.jpg"></div>
		</div>
		<!-- #camera_wrap_3 -->
	</div>

	<script>
		//TOCMAT重启之后 点击左侧列表跳转登录首页 
		if (window != top) {
			top.location.href = location.href;
		}
	</script>

	<script src="static/js/bootstrap.min.js"></script>
	<script src="static/js/jquery-1.7.2.js"></script>
	<script src="static/login/js/jquery.easing.1.3.js"></script>
	<script src="static/login/js/jquery.mobile.customized.min.js"></script>
	<script src="static/login/js/camera.min.js"></script>
	<script src="static/login/js/templatemo_script.js"></script>
	<script type="text/javascript" src="static/js/jquery.tips.js"></script>
	<script type="text/javascript" src="static/js/jquery.cookie.js"></script>
</body>

</html>